package web;


import spring.cloud.tasks.client.Client;
import spring.cloud.tasks.client.WorkerInfo;

import java.util.List;

public class managerFactoryList {
    public static void main(String[] args) throws Exception {
        List<WorkerInfo> workerInfoList = Client.getZooKeeperDataManager().getWorkerInfoList();
        String status = "";
        String action;
        String actionName;
        for (int i = 0; i < workerInfoList.size(); i++) {
            WorkerInfo workerInfo = workerInfoList.get(i);
            if (workerInfo.isExecuteTasks() == true) {
                status = "����";
                action = "stopManagerFactory";
                actionName = "ֹͣ";
            } else {
                status = "����";
                action = "startManagerFactory";
                actionName = "����";
            }
        }
    }
}